<?php
class ActionControllerFabric {
    public static function getController($str, View $view, $args = null) {
        $name = 'controller_'. $str . 'Controller';
        //$name = 'controller_' . $str;
        $actionController = new $name;
        $actionController->setView($view)
                ->setArgs($args);
        return $actionController;
    }
}
